package TraitParams

trait Base(msg: String)

class A extends Base("Hello")
class B extends Base("Dotty!")

def test: Unit =
  println(s"${A()}, ${B()}")